package org.itboys.advertisement.entity;

import java.util.Date;
import java.util.List;

import org.mongodb.morphia.annotations.Indexed;

import org.itboys.mongodb.entity.BaseLongIdEntity;

import org.mongodb.morphia.annotations.Entity;
/**
 *  广告
 * @author weisky
 *
 */
@Entity(value = "Advertisement", noClassnameStored = true)
public class Advertisement extends BaseLongIdEntity{

	private static final long serialVersionUID = -6770414431621601903L;
	@Indexed
	private Long adzoneId;//关联的广告位ID
	private String name; //广告名称
	private Integer type;//广告类型
	private String page;
	private String desc;//描述
	private String ext;
	private Date startTime;//按投放时间的话 则为开始时间
	private Date endTime; //结束时间
	private Integer status; //状态 
	private Integer layoutType; //广告位布局类型
	private List<LinkTag> linkTags;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public List<LinkTag> getLinkTags() {
		return linkTags;
	}

	public void setLinkTags(List<LinkTag> linkTags) {
		this.linkTags = linkTags;
	}

	public Long getAdzoneId() {
		return adzoneId;
	}
	public void setAdzoneId(Long adzoneId) {
		this.adzoneId = adzoneId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getPage() {
		return page;
	}
	public void setPage(String page) {
		this.page = page;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getExt() {
		return ext;
	}
	public void setExt(String ext) {
		this.ext = ext;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getLayoutType() {
		return layoutType;
	}
	public void setLayoutType(Integer layoutType) {
		this.layoutType = layoutType;
	}
}
